package site.yunnong.atvris.service.impl;

import org.springframework.stereotype.Service;
import site.yunnong.atvris.dao.domain.VideoTags;
import site.yunnong.atvris.dao.domain.VideoTagsExample;
import site.yunnong.atvris.dao.mapper.VideoTagsMapper;
import site.yunnong.atvris.service.VideoTagsService;

import javax.annotation.Resource;
import java.util.List;

/**
 * 视频标签
 *
 * @author zhangjinghao
 * @email jhzhang9102@163.com
 * @date 2021-07-09 23:45:37
 */
@Service
public class VideoTagsServiceImpl implements VideoTagsService {
    
    @Resource
    private VideoTagsMapper videoTagsMapper;

    @Override
    public List<VideoTags> queryVideoTagsByUvid(Long uvid) {
        VideoTagsExample example = new VideoTagsExample();
        example.createCriteria().andUvidEqualTo(uvid);
        return videoTagsMapper.selectByExample(example);
    }
}

